GValue value = { 0, };
/* Set NULL here and do the inheritance upon lookup? */
gtk_style_context_get_property (parent,
- prop->pspec->name,
+ _gtk_style_property_get_name (prop),
gtk_style_context_get_state (parent),
&value);
_gtk_style_properties_set_property_by_property (props,
static int
compare_properties (gconstpointer a, gconstpointer b)
{
- return strcmp (((GtkStyleProperty *) a)->pspec->name,
- ((GtkStyleProperty *) b)->pspec->name);
+ return strcmp (_gtk_style_property_get_name ((GtkStyleProperty *) a),
+ _gtk_style_property_get_name ((GtkStyleProperty *) b));
}
static void
const PropertyValue *value = g_hash_table_lookup (ruleset->style, prop);
g_string_append (str, " ");
- g_string_append (str, prop->pspec->name);
+ g_string_append (str, _gtk_style_property_get_name (prop));
g_string_append (str, ": ");
_gtk_style_property_print_value (prop, &value->value, str);
g_string_append (str, ";\n");